﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserProviderList.ascx.cs" Inherits="Linkmeme.Views.Shared.UserProviderList" %>
<%@ Import Namespace="Linkmeme" %>

<div class="mainblock" id="providerList" >
    <div id="spotlight" >
      <div class="btitle">
        <h4>当前可用服务</h4>
      </div>
         
         <%foreach (GroupItemData<UserSelectedProvider> item in GroupProviderList(this.ViewData))
           {
               %>
            <ul>
                <li>
                    <span><%= item.GroupKey.ToCH()%></span>&nbsp;(<%= ViewAllLinkOneController(item.GroupKey)%>)    <%--&nbsp;(<%= ViewAllLink(item.GroupKey)%>) --%>
                    <ul>
                    <%foreach (UserSelectedProvider provider in item.Items)
                      { %>
                         <li>
                            <%= provider.ProviderName%> &nbsp; (<%= provider.ProviderUserName%>) &nbsp; 
                            <%//= Html.ActionLink<Linkmeme.Controllers.PhotoController>(c => c.View(provider.ProviderID, provider.ProviderUserName), "查看")%> 
                            <%= ViewLinkOneController(item.GroupKey, provider)%> &nbsp;<%//= ViewLink(item.GroupKey, provider)%>
                         </li>
                         
                    <% } %>
                    </ul>
                </li>
            </ul>    
               
         <%} %>
      <br />
    </div>
</div>
